﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="{$cfg_site_description}" />

<title>{$cfg_site_name}回答|{$cfg_site_name}</title>
{template 'header'}
<body>
<div id="buy917_wrap">
	<div id="buy917_login">
     <div class="logins">
	 {if !empty($_USERS)}
      <ul id="account">
        <li title="tlover" class="username">歡迎您，{$_USERS['uname']}！</li>
        <li class="account1">&nbsp;
		<a href="m.php?action=bond&type=available">我的團購券</a> | <a href="m.php?action=orders&type=all">我的訂單</a> | 
		<a href="m.php?action=account">帳戶餘額</a> | <a href="m.php?action=settings">帳戶設置 | </a>
		</li>
        <li class="logout"><a href="quit.php">退出</a></li>
      </ul>
      {else}
      <ul id="account">
        <li class="login"><a href="login.php">會員登入 | 註冊</a></li>       
      </ul>
      {/if}
      </div>   
	</div>    
    <div id="buy917_header">
    	<div id="buy917_logo"><a href="index.php">Buy917</a></div>
        <div class="buy917_header_banner">
        	<div class="buy917_header_topbanner">
            <?php include("admin/event.php")?>
            </div>
          	<div class="buy917_header_select">
            	<div class="buy917_header_city">
                	 {if !empty($_cityid)}
                    <div class="guides">
                        <div class="city">
                            <h2>{$_cityname}</h2>
                        </div>
                        <div id="guides-city-change" class="change">切換城市</div>
                        <div id="guides-city-list" class="city-list">
                            <ul>
                            {loop $_citylist $v}
                                <li {if $v['cid']==$_cityid}class="current"{/if}><a href="index.php?cityid={$v['cid']}">{$v['cityname']}</a></li>
                            {/loop}
                            </ul>                   
                        </div>
                    </div>
                    {/if}	
                </div>
                <div class="buy917_header_group">
                	{template 'headergroup'}	
                </div>
            </div>
       </div>
    </div><!-- buy917_header -->
  
    <div id="buy917_menu">
    	<a href="index.php">馬上 揪一起</a>
        <a href="grouplist.php">曾經 揪一起</a>
        <a href="article.php?aid=3" <?php if($_GET['aid']== 3){ echo "class='on'";} ?>>怎樣 揪一起</a>
        <a href="article.php?aid=1" class="end <?php if($_GET['aid']== 1){ echo "on";} ?>">問答 揪一起</a>       
    </div><!-- buy917_menu -->
       
    <div id="buy917_middle">
        	<div class="buy917_grouplist_top"></div>      
            <div class="buy917_grouplist_body"> 
				{if !empty($gid)}
	
      <div class="consult-hd">
        <div id="deal-share">
          <div class="deal-share-top">
            <div class="deal-share-links">
              <h4>分享到：</h4>
              <ul class="cf">
               <li><a class="im" href="javascript:void(0);" id="deal-share-im">MSN/QQ</a></li>
        <li><a galabel="default" class="kaixin" href="http://www.kaixin001.com/repaste/bshare.php?rtitle={$value['title']}&rcontent=&rurl={$cfg_site_url}" target="_blank">開心</a></li>
        <li><a galabel="default" class="renren" href="http://share.renren.com/share/buttonshare.do?link={$cfg_site_url}&title={$value['title']}" target="_blank">人人</a></li>
        <li><a galabel="default" class="douban" href="http://www.douban.com/recommend/?url={$cfg_site_url}&title={$value['title']}&comment=" target="_blank">豆瓣</a></li>
        <li><a galabel="default" class="sina" href="http://v.t.sina.com.cn/share/share.php?appkey=579809138&url={$cfg_site_url}&title={$value['title']}&pic=" target="_blank">新浪微博</a></li>
        <li><a galabel="default" class="email" href="mailto:?subject={$value['title']}&body=發現一好網站--{$cfg_site_name}，他們每天組織一次團購，超值！
今天的團購是：{$value['title']}
我想您會感興趣的：
{$cfg_site_url}">郵件</a></li>
              </ul>
            </div>
          </div>
          <div class="deal-share-fix"></div>
          <div id="deal-share-im-c">
            <div class="deal-share-im-b">
              <h3>把下面的內容通過 MSN 或 QQ 發送給好友：</h3>
              <p>
                <input id="share-copy-text" type="text" value="{$cfg_site_url}" size="30" class="f-input" />
                <input id="share-copy-button" type="button" value="複製" class="formbutton" />
              </p>
            </div>
          </div>
        </div>
		
		
        <div class="deal-info">
          <table class="deal-info-table">
            <tr>
              <td class="link"><p><a href="view.php?gid={$value['gid']}">&raquo; 返回本團購</a></p>
                <h2>{$value['title']}</h2></td>
              <td class="buy"><a href="buy.php?gid={$value['gid']}">hello</a></td>
            </tr>
          </table>
        </div>
		
		
      </div>
	  
	  {/if}
			
               <div class="box-content">
              <div class="head">
                <h2>{$cfg_site_name}答疑</h2>
              </div>
              <div class="sect consult-list">
                <ul class="list">
                
                {loop $dataarray $n $r}
                  <li id="consult-entry-{$r['gid']}" {if ($n-1)%2==0} class="alt"{else}{/if}>
                    <div class="item">
                      <p class="user"><strong>{$r['uname']}</strong>{ddate('Y-m-d',$r[addtime])}</p>
                      <div class="clear"></div>
                      <p class="text">{$r['msg']}</p>
                      {if !empty($r['reply'])}
                      <p class="reply"><strong>回復：</strong>{$r['reply']}</p>
                      {/if}
                    </div>
                  </li>
                  {/loop}
                  
                </ul>
                <ul class="paginator">
                  {echo pagelist($total,$pagesize,$page,"guestbook.php?gid=$gid");}
                </ul>
              </div>
              <div class="head" id="consult-form-head">
                <h2>我要提問</h2>
              </div>
              <div class="sect consult-form">
                <form id="consult-add-form" method="post" action="guestbook.php?gid={$gid}">
                  <textarea class="f-textarea" cols="60" rows="5" name="question"></textarea>
                  <p class="commit">
                    <input type="hidden" id="gid" name="gid" value="{$gid}" />
                    <input type="submit" value="好了，提交" name="commit" class="formbutton"/>
                  </p>
                </form>
                <div id="consult-add-succ" class="succ">
                  <p>您的問題已成功提交，客服MM很快就會回復的，稍等一會兒再來看吧。</p>
                  <p><a href="view.php?gid={$gid}">返回本團購</a>，或<a id="consult-add-more" href="javascript:void(0);">還有其他問題？</a></p>
                </div>
              </div>
            </div>
                
        		
            </div><!-- buy917_grouplist_body -->
            <div class="buy917_grouplist_bottom"></div>
    </div><!-- buy917_middle -->
</div><!-- buy917wrap -->
<!-- footer -->
<div id="buy917_footer">
	{template 'footer'}	
</div>
</body>
</html>
